package traveler.activities;

import traveler.controllers.StepController;
import traveler.tools.ExpandableListAdapter;
import android.os.Bundle;
import android.view.Window;
import android.widget.ExpandableListView;

public class StepsListActivity extends DashboardActivity
{
	private StepController _controller;
	
	public void onCreate(Bundle savedInstanceState)
    {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        
        super.onCreate(savedInstanceState);
        setContentView(R.layout.steps_list);
        
        _controller = new StepController(StepsListActivity.this);
        
        ExpandableListView ddlCourseSteps = (ExpandableListView)findViewById(R.id.steps_list_ddlCourseSteps);
        ddlCourseSteps.setAdapter(new ExpandableListAdapter(StepsListActivity.this));
        ddlCourseSteps.setOnChildClickListener(_controller);
        ddlCourseSteps.expandGroup(0);
    }
}
